Skip to content

feat: logs for remote access - #26

Open
aln730 wants to merge 17 commits into
ComputerScienceHouse:masterfrom
aln730:remote-access-logs
Open

feat: logs for remote access#26
aln730 wants to merge 17 commits into
ComputerScienceHouse:masterfrom
aln730:remote-access-logs

Conversation

@aln730

@aln730 aln730 commented Aug 2, 2026

Copy link
Copy Markdown
Member

What

title

Why

needs logs to keep eye on rtp powers

Test Plan

comment out:

  if (getDoorStatus(req.params.doorId).guess === "offline") {
    return res.status(409).json({ message: "Door is offline" });
  }

in routes/doors.js

It is somewhat similar stuff to physical door acess logs

Discard the stuff below. I made a stacked PR that'll make testing easy cus doors are offline

In frontend. ahhh create a new branch without the head commit

ALSO why does vscode keep fucking up whitespaces OMG

Env Vars

N/A

Documentation

N/A

Checklist

  • Tested all changes locally

@BigSpaceships BigSpaceships left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

W all around

Comment thread routes/doors.js Outdated
Comment thread routes/doors.js
Comment thread routes/doors.js Outdated
Comment thread routes/doors.js Outdated
Comment thread routes/doors.js Outdated
Comment thread access.js Outdated
Comment thread routes/doors.js Outdated
@aln730
aln730 requested a review from costowell August 6, 2026 01:10
@aln730
aln730 force-pushed the remote-access-logs branch 5 times, most recently from 0c58b48 to 929bcc7 Compare August 6, 2026 02:36
costowell
costowell previously approved these changes Aug 6, 2026

@costowell costowell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super minor comments now. Thank you for making all of those edits, this looks basically ready to merge!

Comment thread routes/doors.js
Comment thread routes/doors.js
Comment thread routes/doors.js Outdated
Comment thread routes/keys.js Outdated
Comment thread routes/keys.js Outdated
Comment thread routes/mobile.js

router.get("/provision", async (req, res) => {
const stem = { userId: req.ctx.userId, mobile: true };
const stem = { userId: req.ctx.userId, type: "mobile" };

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does there need to be a migration run on the DB too?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, the DB migration is needed. Right now mobile keys have mobile: true set, but physical keys just lack that field entirely rather than having mobile: false, so anything reading key type has to infer it from missing values instead of a stated value

costowell
costowell previously approved these changes Aug 6, 2026

@costowell costowell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🥑 🚢

@costowell

Copy link
Copy Markdown
Contributor

chom

costowell
costowell previously approved these changes Aug 6, 2026
@aln730
aln730 force-pushed the remote-access-logs branch 2 times, most recently from 2237db9 to 33d4a8e Compare August 6, 2026 23:28
@aln730
aln730 requested a review from costowell August 7, 2026 00:18

@costowell costowell left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢🚢

@aln730
aln730 force-pushed the remote-access-logs branch from 33d4a8e to ab94458 Compare August 7, 2026 23:58

@BigSpaceships BigSpaceships left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants